package com.example.linearlayoutdemo.network.auth.model;

/**
 * 登录响应数据模型
 */
public class LoginResponse {
    private boolean success;
    private String message;
    private User user;
    private String token;

    // Getters and Setters
    public boolean isSuccess() {
        return token==null?false:true;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
    public String getToken() {
        return token;
    }
    public void setToken(String tk) {
        this.token = tk;
        this.user.setToken(tk);
    }
}

